﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using System.Data.Common;
using Csla;
using Csla.Data;

namespace BO
{

    [Serializable()]
    public partial class SysUser:BusinessBaseEx
    {
        public SysUser()
        {
            this.Clear();
        }
         
        
    #region primary field
       
         private static PropertyInfo<String> UserNameProperty=RegisterProperty( typeof(SysUser), new PropertyInfo<String>("UserName",true));
       
        
         public String UserName
        { 
            get{return GetProperty(UserNameProperty);}
            set{SetProperty(UserNameProperty, value); }
        }
       
         private static PropertyInfo<String> UserPwdProperty=RegisterProperty( typeof(SysUser), new PropertyInfo<String>("UserPwd",false));
       
        
         public String UserPwd
        { 
            get{return GetProperty(UserPwdProperty);}
            set{SetProperty(UserPwdProperty, value); }
        }
       
         private static PropertyInfo<Boolean> IsInactiveProperty=RegisterProperty( typeof(SysUser), new PropertyInfo<Boolean>("IsInactive",false));
       
        
         public Boolean IsInactive
        { 
            get{return GetProperty(IsInactiveProperty);}
            set{SetProperty(IsInactiveProperty, value); }
        }
       
         private static PropertyInfo<Boolean> AllowAllCompanyProperty=RegisterProperty( typeof(SysUser), new PropertyInfo<Boolean>("AllowAllCompany",false));
       
        
         public Boolean AllowAllCompany
        { 
            get{return GetProperty(AllowAllCompanyProperty);}
            set{SetProperty(AllowAllCompanyProperty, value); }
        }
       
         private static PropertyInfo<String> CompanyNameProperty=RegisterProperty( typeof(SysUser), new PropertyInfo<String>("CompanyName",false));
       
        
         public String CompanyName
        { 
            get{return GetProperty(CompanyNameProperty);}
            set{SetProperty(CompanyNameProperty, value); }
        }
    #endregion 
       
        public override string GetTableName()
        {
            return "SysUser";
         }
        
    
    
    }
}